export function transformHotelDataMT(hotelData) {
  // Ensure input is an array
  if (!Array.isArray(hotelData)) {
    console.error('Input data is not an array:', hotelData);
    return [];
  }
  
  return hotelData.map(hotel => {
    return [
      {
        width: '200px',
        type: '1',
        title: hotel.hotel_name,
        content: hotel.hotel_name
      },
      {
        type: '1',
        title: hotel.hos,
        content: hotel.hos,
        width: '80px'
      },
      {
        type: '1',
        title: hotel.xsjy || '0',
        content: hotel.xsjy || '0',
        width: '120px'
      },
      {
        type: '1',
        title: hotel.xsjj || '0',
        content: hotel.xsjj || '0',
        width: '120px'
      },
      {
        type: '1',
        title: hotel.xse || '0',
        content: hotel.xse || '0',
        width: '120px'
      },
      {
        type: '1',
        title: hotel.bgrs || '0',
        content: hotel.bgrs || '0',
        width: '120px'
      },{
        type: '1',
        title: hotel.dpf || '0',
        content: hotel.dpf || '0',
        width: '120px'
      },
      {
        type: '1',
        title: hotel.llrs || '0',
        content: hotel.llrs || '0',
        width: '120px'
      },
      {
        type: '1',
        title: hotel.zfdd || '0',
        content: hotel.zfdd || '0',
        width: '120px'
      },
      {
        type: '2',
        title: parseFloat(hotel.bg_zhl) || 0,
        content: parseFloat(hotel.bg_zhl) || 0,
        width: '120px'
      },
      {
        type: '2',
        title: parseFloat(hotel.ll_zhl) || 0,
        content: parseFloat(hotel.ll_zhl) || 0,
        width: '120px'
      },
      {
        type: '2',
        title: parseFloat(hotel.cjl) || 0,
        content: parseFloat(hotel.cjl) || 0,
        width: '120px'
      }
    ];
  });
}